/* ====================== TERMINALES DE DIRECCIÓN ====================== */
body {
    background: #0f172a;
    color: #e2e8f0;
}

.site-header {
    background: #1e2937;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.site-logo {
    color: #f59e0b;
    font-size: 1.9rem;
    font-weight: bold;
    text-decoration: none;
}

.search-icon {
    font-size: 1.8rem;
    color: #f59e0b;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-icon:hover {
    background: #334155;
}

/* Barra de búsqueda flotante */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.search-box {
    width: 90%;
    max-width: 700px;
    display: flex;
    background: #1e2937;
    border-radius: 50px;
    padding: 10px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.3rem;
    padding: 10px 20px;
}

.search-box button {
    background: none;
    border: none;
    color: #f59e0b;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 15px;
}

/* Contenido principal */
.productos-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

.productos-container h1 {
    text-align: center;
    color: #f59e0b;
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.producto-card {
    background: #1e2937;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-10px);
}

.pieza-img {
    text-align: center;
    padding: 30px 20px 20px;
    background: #334155;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pieza-img img {
    max-height: 195px;
    width: auto;
}

.codigo {
    background: #f59e0b;
    color: #1e2937;
    text-align: center;
    padding: 18px;
    font-size: 1.55rem;
    font-weight: bold;
}

.info {
    padding: 22px;
    color: #e2e8f0;
}

.descripcion {
    font-size: 1.35rem;
    color: #60a5fa;
    text-align: center;
    margin-bottom: 18px;
    font-weight: 600;
}

.detalle {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
    font-size: 1.08rem;
}

.detalle strong {
    color: #f59e0b;
}

.carro-img {
    text-align: center;
    margin-top: 20px;
}

.carro-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* ====================== BOTÓN "DESCRIPCIÓN DE PIEZAS" ====================== */
.btn-descripcion {
    background-color: #1e40af;
    color: white;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
    white-space: nowrap;
}

.btn-descripcion:hover {
    background-color: #facc15;
    color: #1e3a8a;
  
   
}

/* Ajuste del header para que quede bien con el botón */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.site-header {
    padding: 12px 25px;
}




/* Responsive */
@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}